home *** CD-ROM | disk | FTP | other *** search
/ 220 Jogos / 220 jogos.iso / classicos / resta11 / SGLFont.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-04-17  |  882 b   |  55 lines

  1. // SGLFont.h: Schnittstelle fⁿr die Klasse SGLFont.
  2. //
  3. // Copyright by AndrΘ Stein
  4. // E-Mail: stonemaster@steinsoft.net, andre_stein@web.de
  5. // http://www.steinsoft.net
  6. //////////////////////////////////////////////////////////////////////
  7.  
  8. #ifndef SGL_FONT_H
  9. #define SGL_FONT_H
  10.  
  11. #if _MSC_VER > 1000
  12. #pragma once
  13. #endif 
  14.  
  15. #include <windows.h>
  16. #include <gl\gl.h>
  17. #include <stdarg.h>
  18. #include <stdio.h>
  19.  
  20. struct SFontAttri
  21. {
  22.     SFontAttri (int isBold,bool isItalic, bool isUnderline)
  23.     {
  24.         bold = isBold;
  25.         italic = isItalic;
  26.         underline = isUnderline;
  27.     }
  28.  
  29.     SFontAttri()
  30.     {
  31.     }
  32.  
  33.     int bold;
  34.     bool italic;
  35.     bool underline;
  36. };
  37.  
  38. enum SAlign
  39. {
  40.     LEFT,
  41.     RIGHT,
  42.     CENTER
  43. };
  44.  
  45. class SGLFont  
  46. {
  47. public:
  48.     virtual void drawText(SAlign alignment , const char* string,...) = 0;
  49.     virtual ~SGLFont();
  50. protected:
  51.     SGLFont();
  52.     GLuint listBase;
  53. };
  54.  
  55. #endif